package cn.legend.travel.ask.dao.persist.repository;

import cn.legend.travel.ask.pojo.entity.Ask;
import cn.legend.travel.ask.pojo.entity.UserCollection;
import cn.legend.travel.ask.pojo.param.AddNewAsksParam;
import cn.legend.travel.ask.pojo.vo.*;
import cn.legend.travel.common.pojo.vo.PageData;
import java.util.Date;
import java.util.List;

public interface AsksRepository {
    List<AskVo> getAsks(Integer pageNum, Integer pageSize,String sort);
    int addAsks(AddNewAsksParam asksParam);

    List<UserSortVo> getBestUsers(Date data,String sort);

    PageData<AnswerVo> getAnswers(Long questionId,Integer pageNum,Integer pageSize);

    Ask getAsk(Long questionId);

    int addLikes(Long questionId);

    int cancelLikes(Long questionId);

    int addView(Long questionId);

    int report(Long questionId);
    List<AsksCitySimpleVO> getByCity(String city);

    UserCollection getCollection(Long questionId, Long id, String asks);

    int insert(UserCollection userCollection);

    Ask getAskById(Long questionId);
}
